//定义医院列表相关的接口
export interface IhospitalListItem {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  status: number
  bookingRule: {
    cycle: number
    releaseTime: string
    stopTime: string
    quitDay: number
    quitTime: string
    rule: string[]
  }
}

export type IhospitalList = IhospitalListItem[]

export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

type Status = 0 | 1 // 字面量类型
// 获取医院列表数据参数的接口
export interface IhospitalListParams {
  page: number
  pageSize: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

// 省数据接口
export interface IprovinceItem {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  name: string
  value: string
}

export type IprovinceList = IprovinceItem[]
